from django.db import models


# Create your models here.
class User(models.Model):
    user = models.CharField(max_length=32, verbose_name="账号")
    pwd = models.CharField(max_length=64, verbose_name="密码")


class Token(models.Model):
    user = models.OneToOneField(to=User, on_delete=models.CASCADE)
    token = models.CharField(max_length=128)
